package com.srq.service.impl;

import com.srq.dao.UserDao;
import com.srq.dao.impl.UserDaoimpl;
import com.srq.pojo.User;
import com.srq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
     UserDaoimpl userDao;
    public List<User> findAllUser(){
        List<User> userList=userDao.findAllUser();
        return userList;
    }
}
